package gui.calendarview;

import java.awt.Dimension;
import java.util.Date;

import javax.swing.JPanel;

import no.ntnu.fp.model.CalendarModel;
import no.ntnu.fp.model.Person;
import no.ntnu.fp.swingutil.CalendarTools;

public abstract class CalendarView extends JPanel {
	
	private static final long serialVersionUID = 1L;

	protected CalendarTools ct;
	protected Date currentDateShowing;
	protected boolean isAllowedToOpenWindow;
	protected Person user;
	protected CalendarModel calendarModel;
	
	public CalendarView(Date date, Person user) {
		currentDateShowing = date;
		ct = new CalendarTools();
		isAllowedToOpenWindow = false;
		this.user = user;
		calendarModel = new CalendarModel(user);
		setPreferredSize(new Dimension(1000,500));
	}
	
	public Date getCurrentDateShowing() {
		return currentDateShowing;
	}
	
	public abstract void setCurrentDateShowing(Date date);
	
}
